package com.yupi.springbootinit.config;


import com.yupi.springbootinit.model.dto.ai.AiSendRequest;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description
 * @Author minify
 * @Date 2023/12/18 10:05
 * @Project mybi-backend
 */
@Configuration
@ConfigurationProperties(prefix = "ai")
@Data
public class AiConfig {

    private String linkUrl;

    private String biApiKey;


    @Bean
    public AiSendRequest aiSendRequest() {
        return new AiSendRequest(linkUrl, biApiKey);
    }

}



